class CreateBlogSorts < ActiveRecord::Migration
  def change
    create_table :blog_sorts do |t|
      t.string :sort_name, null: false        #分类名称

      t.timestamps null: false
    end
    add_index :blog_sorts, :sort_name
  end
end
